package com.example.paymentsystem.observer.impl;

import com.example.paymentsystem.observer.PaymentEvent;
import com.example.paymentsystem.observer.PaymentEventListener;

/**
 * @author YiYuan
 * @data 2025/6/25
 * @apoNote
 */
public class EmailNotificationListener implements PaymentEventListener {

    @Override
    public void onPaymentEvent(PaymentEvent event) {
        System.out.println("Sending Email notification for order: " + event.getRequest().getOrderId() + ",status: " + event.getResponse().getMessage());
    }
}
